package com.jugheadzhou.auth.mapper;

import com.jugheadzhou.auth.entity.UserScore;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Param;

import java.math.BigDecimal;

/**
 * @author jugheadzhou
 */
public interface UserScoreMapper extends BaseMapper<UserScore> {

    /**
     * 通过websocket连接ID查询分数
     * TODO 连接ID逻辑需要确定
     *
     * @param connectionId
     * @return
     */
    BigDecimal selectScoreByWsConnectionId(@Param("connectionId") String connectionId);
}
